import ProxyInterface from '../proxy-interface';
import {ItemGroup} from '@pkpm/pkpm-types';

class GroupModelProxy implements ProxyInterface<ItemGroup> {
    public itemGroup = new ItemGroup();
    constructor(responseData) {
        let data = responseData.data || responseData;
        Object.assign<ItemGroup, ItemGroup>(this.itemGroup, data);
    }

    getModel(): ItemGroup {
        return this.itemGroup;
    }
}

export {GroupModelProxy};
